import axios from '@/libs/api.request'

// 公积金应付账单
export class FinancePaymentDetailsApi {
  // 付款明细管理查询接口
  static financePaymentDetailsGetList (data) {
    return axios.request({
      url: '/FinancePaymentDetails/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data
    })
  }

  // 付款明细管理导出接口
  static financePaymentDetailsExport (data) {
    return axios.request({
      url: '/FinancePaymentDetails/Export ',
      method: 'post',
      enctype: 'multipart/form-data',
      data
    })
  }

  // 付款明细管理导出接口
  static getPayBanks (data) {
    return axios.request({
      url: '/OrganizationBank/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data
    })
  }

  // 付款明细管理导出接口
  static getPayTypes (data) {
    return axios.request({
      url: '/Enum/Enum?groupName=payablebills.payabletype',
      method: 'get',
      enctype: 'multipart/form-data',
      data
    })
  }
  
  // 导出付款单接口
  static exportPayment (params) {
    return axios.request({
      url: '/FinancePaymentDetails/ExportPayment',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
